$tabs-nav-height: 32px;

.main-tabs-container {
    height: $tabs-nav-height;
    background: white;
    border-bottom: 1px solid $border-color;
    box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.08);
    padding: 0 2rem;
    position: relative;
}

.tabs-nav {
    display: flex;
    align-items: center;
    height: $tabs-nav-height;
    overflow: hidden;
}

.tabs-nav__item {
    display: inline-flex;
    align-items: center;
    //justify-content: space-between;
    flex-basis: 200px;
    max-width: 200px;
    min-width: 70px;
    padding: 5px 12px 4px;
    border-style: solid;
    border-width: 1px 1px 0 0;
    border-radius: 5px 5px 0 0;
    border-color: #cecece;
    height: $tabs-nav-height - 2;
    background-color: #e8e8e8;
    transition: all .3s ease-in-out;
    cursor: default;
    &:first-child {
        border-left-width: 1px;
    }
    &:not(.tabs-nav__item--active):hover {
        background-color: #f4f4f4;
    }
}

.tabs-nav__item--active {
    background-color: white;
    padding-bottom: 5px;
    height: $tabs-nav-height;
    .tabs-nav__text {
        color: #000;
    }
}

.tabs-nav__text {
    display: inline-block;
    min-width: 25px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tabs-nav__close {
    margin-left: auto;
    font-size: 16px;
    transform: scale(1.42857143) rotate(0);
    cursor: pointer;
    color: #666;
    opacity: .66;
    &:hover {
        opacity: 1;
    }
}

.tabs-nav__prev,
.tabs-nav__next {
    position: absolute;
    line-height: $tabs-nav-height;
    width: 2rem;
    text-align: center;
    cursor: pointer;
}

.tabs-nav__prev {
    left: 0;
}

.tabs-nav__next {
    right: 0;
}
